home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / CC_C / 0574.ZIP / $$DAT.ASM < prev    next >
Assembly Source File  |  1986-07-25  |  1KB  |  54 lines

  1. include %c86.inc
  2.  
  3.     ttl    $$DAT, 1.00, 07-25-86
  4.  
  5. ;    This file defines the file table and other global variables
  6. ;    for the $main module which contains initial entry code.
  7.  
  8. include d2ioh.inc
  9.  
  10.     dseg
  11.  
  12.     glblv    _sysvals, word, 80h        ; used by alloc()
  13. htop    dw    80h
  14. savess    dw    0                ; use unknown
  15. savesp    dw    0
  16.     glblv    _args, word, 0            ; pointer to cmd line tail
  17.     glblv    _errcod, word, 0        ; global error value
  18.     glblv    _systype, word, 1        ; use unknown
  19.  
  20. ;    ftbdef    1                ; create file table
  21.  
  22.     public    _ftb            ; c86 linker won't take macro
  23.  
  24. _ftb    dw    -1            ; ugc save buffer
  25.     db    rdbit            ; mode byte
  26.     db    0,0            ; crflg, ercd
  27. ;            above is stdin  - preopened for read only
  28.     dw    -1
  29.     db    wrbit
  30.     db    0,0
  31. ;            above is stdout - preopened for write only
  32.     dw    -1
  33.     db    wrbit
  34.     db    0,0
  35. ;            above is stderr - preopened for write only
  36.     dw    -1
  37.     db    rdbit+wrbit
  38.     db    0,0
  39. ;            above is stdaux - preopened for read/write
  40.     dw    -1
  41.     db    rdbit+wrbit
  42.     db    0,0
  43. ;            above is stdlst - preopened for read/write
  44.     rept    15
  45.     dw    -1
  46.     db    0
  47.     db    0,0
  48. ;            above is file   - not open yet
  49.     endm
  50.  
  51.     data    ends
  52.  
  53.     end
  54.